package com.imooc.pan.server.modules.file.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author hhb
 * @data 2024/6/11 20:44
 */
@Data
@ApiModel("文件分片合并参数对象")
public class FileChunkMergePo implements Serializable {

    @ApiModelProperty(value = "文件名称",required = true)
    @NotBlank(message = "文件名称不能为空")
    private String filename;

    @ApiModelProperty(value = "文件标识",required = true)
    @NotBlank(message = "文件标识不能为空")
    private String identifier;

    @ApiModelProperty(value = "文件大小",required = true)
    @NotNull(message = "文件大小不能为空")
    private Long totalSize;

    @ApiModelProperty(value = "文件父文件夹ID",required = true)
    @NotNull(message = "文件父文件夹ID不能为空")
    private String parentId;
}
